import 'package:flutter/widgets.dart';
import 'package:mobile_app.core/core/presentation/widgets/tiles/pressable_text_tile.dart';

class ActionTile extends StatelessWidget {
  const ActionTile({
    required this.title,
    required this.onPressed,
    required this.icon,
    this.trailing,
    this.showPremiumBadge = false,
    super.key,
  });

  final String title;
  final VoidCallback? onPressed;
  final Icon icon;
  final Widget? trailing;
  final bool showPremiumBadge;

  @override
  Widget build(BuildContext context) {
    return PressableTextTile(
      onPressed: onPressed,
      title: title,
      leading: SizedBox(
        width: 50,
        child: Center(
          child: icon,
        ),
      ),
      trailing: trailing,
      showPremiumBadge: showPremiumBadge,
    );
  }
}
